<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册</title>
<link href="http://localhost/ci/css/style_web.css" media="screen, projection" rel="stylesheet" type="text/css">
<meta name="Author" content="猫冬">
<meta name="description" content="jQuery formValidator表单验证插件" />
<meta name="keywords" content="jQuery,formValidator,插件,表单,验证,插件,javascript,表单验证,提示层" />
<script src="http://localhost/633games/formvalidator/jquery-1.4.4.min.js" type="text/javascript"></script>
<script src="http://localhost/633games/formvalidator/formValidator-4.1.1.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://localhost/633games/formvalidator/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
<script language="javascript" src="http://localhost/633games/formvalidator/demo/DateTimeMask.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$.formValidator.initConfig({formID:"form1",theme:'ArrowSolidBox',mode:'AutoTip',onError:function(msg){alert(msg)},inIframe:true});
		$("#username").formValidator({onFocus:"用户名至少6个字符,最多10个字符",onCorrect:"该用户名可以注册"}).inputValidator({min:6,max:10,onError:"你输入的用户名非法,请确认"}).regexValidator({regExp:"username",dataType:"enum",onError:"用户名格式不正确"})
		    .ajaxValidator({
			async : true,
			url : 'http://localhost/633games/index.php/login/check2',
			success : function(data){
		    	
	          if(data==0){
		        
				return true;
	          }else{
				return false;
		          }
			},
			buttons: $("#button"),
			error: function(jqXHR, textStatus, errorThrown){alert("服务器没有返回数据，可能服务器忙，请重试"+errorThrown);},
			onError : "该用户名已经存在，请更换用户名",
			onWait : "正在对用户名进行合法性校验，请稍候..."
		});
		$("#password").formValidator({onShow:"请输入密码",onFocus:"密码不能为空",onCorrect:"密码合法"}).inputValidator({min:1,onError:"密码不能为空,请确认"});
		$("#password1").formValidator({onShow:"确认密码",onFocus:"两次密码必须一致哦",onCorrect:"密码一致"}).inputValidator({min:1,onError:"重复密码不能为空,请确认"}).compareValidator({desID:"password",operateor:"=",onError:"2次密码不一致,请确认"});
	$.formValidator.reloadAutoTip();
});

function reloadAutoTip()
{
	$.formValidator.reloadAutoTip();
}
	
</script>


<style type="text/css" media="all">
body,div{font-size:12px;}
tr{height:32px;}
</style>
</head>

<body>
<div class="sign">
<div class="logo"><a href="http://localhost/633games/index.php/welcome/index" title="返回首页"></a></div>
<div class="block">
<!--<div id="error"></div>-->

<form action="sign" method="post" id='form1'>

<label>用户名或邮箱</label>
<input id="username" name="username" value="" type="text" >
<label>密码</label>

<input id="password" name="password" type="password" placeholder="密码">

<input id="password1" name="password1"  type="password" placeholder="确认密码">
<input name="remember_me" id="remember_me" value="1" checked="checked" type="checkbox">
<button type="submit" name="button" id='button'>注册</button>
</form>
<div class="note">

</div>
</div>
</div>




</body></html>